<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<script type="text/javascript" charset="utf-8"
	src="js/libs/editor/ueditor.config.js"></script>
<script type="text/javascript" src="js/libs/editor/ueditor.js"></script>
<form:form id="knowledgeForm" commandName="model" cssClass="validate"
	action="knowledge2/knowledgeItem2/save">
	<form:hidden path="id" />
	<div class="header">
		<h2>
			&nbsp;&nbsp;服务交付物信息<span><font color="red">（* 为必填项）</font> </span>
		</h2>
	</div>
	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">分类：</td>
				<td class="td2"><form:input path="kngKnowledgeCategoryId"
						cssClass="hidden" /> <isperp:treeSelector
						id="selectParentCategory"
						url="knowledge2/knowledgeCategory2/getTree"
						valueControlId="kngKnowledgeCategoryId"
						displayValue="${categoryName}" displayValueCssClass="required"></isperp:treeSelector>
				</td>
			</tr>

			<tr>
				<td class="td1">标题：</td>
				<td class="td2"><form:input path="title" cssClass="required"
						maxlength="200" cssStyle="width:80%" /></td>
			</tr>

			<tr>
				<td class="td1">关键字：</td>
				<td class="td2"><form:input path="keyword" maxlength="200"
						cssStyle="width:80%" cssClass="required" />
				</td>
			</tr>
			<tr>
				<td class="td1">内容：</td>
				<td class="td2" style="position: relative;"><form:textarea path="contents"
						cssStyle="height:200px;width:98%" cssClass="required " />
				</td>
			</tr>
			<tr>
				<td class="td1">附件：
				<td class="td2" style="height:30px"><isperp:uploader
						sourceId="${model.id }" id="knowledgeItemFiles"></isperp:uploader>
				</td>
			</tr>
			<tr>
				<td class="td1">权限：</td>
				<td class="td2"><form:radiobutton label="公司级"
						value="companyLevel" path="accessRight" /> <form:radiobutton
						label="公开" value="public" path="accessRight" /></td>
			</tr>
		</tbody>
	</table>

</form:form>

<isperp:buttonList>
	<isperp:processButtons processKey="knowledge2Process"
		processId="${model.processId }" businessKey="${model.id }"
		formId="knowledgeForm"></isperp:processButtons>
</isperp:buttonList>


<script type="text/javascript">
UE.getEditor('contents');
</script>